//
//  DataBaseManager.m
//  FMDB
//
//  Created by fangzhengwei on 2017/3/13.
//  Copyright © 2017年 Yuanfei. All rights reserved.
//

#import "DataBaseManager.h"

@implementation DataBaseManager

- (instancetype)sharedManager{
    
    static id instruce;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        //获取沙盒路径
        NSString *path = [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject] stringByAppendingPathComponent:@"data.db"];
        
        instruce = [[DataBaseManager alloc] initWithPath:path];
    });
    return instruce;
}



@end
